package com.sjzd.weixin.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {
    private static final SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd");

    public static String getTodayDayAndMonth() {
        return dateFormat.format(new Date());
    }

    public static String getYesterdayDayAndMonth() {
        return dateFormat.format(System.currentTimeMillis() - 1000 * 60 * 60 * 24);
    }
}
